package com.blb.common.feign;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.common.entity.Product;
import com.blb.common.entity.User;
import com.blb.common.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * 调用用户服务的Feign客户端
 * @FeignClient需要设置调用的服务名
 */
@FeignClient(value = "user-service")
public interface UserServiceFeignClient {

    /**
     * 调用商品id查询
     * @param id
     * @return
     */
    @GetMapping("/user/{id}")
    ResponseResult<User> getUserById(@PathVariable Long id);
}
